package com.yipao.db.dao;

import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoAftersale;
import com.yipao.db.domain.YipaoAftersaleExample;

import java.util.List;

public interface AftersaleMapper {

    long countByExample(YipaoAftersaleExample example);


    int deleteByExample(YipaoAftersaleExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoAftersale record);


    int insertSelective(YipaoAftersale record);


    YipaoAftersale selectOneByExample(YipaoAftersaleExample example);


    YipaoAftersale selectOneByExampleSelective(@Param("example") YipaoAftersaleExample example, @Param("selective") YipaoAftersale.Column... selective);


    List<YipaoAftersale> selectByExampleSelective(@Param("example") YipaoAftersaleExample example, @Param("selective") YipaoAftersale.Column... selective);


    List<YipaoAftersale> selectByExample(YipaoAftersaleExample example);


    YipaoAftersale selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoAftersale.Column... selective);


    YipaoAftersale selectByPrimaryKey(Integer id);


    YipaoAftersale selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoAftersale record, @Param("example") YipaoAftersaleExample example);


    int updateByExample(@Param("record") YipaoAftersale record, @Param("example") YipaoAftersaleExample example);


    int updateByPrimaryKeySelective(YipaoAftersale record);


    int updateByPrimaryKey(YipaoAftersale record);


    int logicalDeleteByExample(@Param("example") YipaoAftersaleExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
